package com.chhh.cranelease.service;

import com.chhh.cranelease.entity.CarLog;
import com.chhh.cranelease.mapper.CarLogDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarLogService {
    @Autowired
    private CarLogDao dao;
    public Integer insertCarLog(CarLog carLog){
        return dao.insertCarLog(carLog);
    }
    public List<CarLog> selectAll(String username){
        return dao.selectAll(username);
    }
    public CarLog selectById(Integer id){
        return dao.selectById(id);
    }
    public Integer updateLog(CarLog carLog){
        return dao.updateLog(carLog);
    }
    public Integer cancelLog(CarLog carLog){
        return dao.cancelLog(carLog);
    }
}
